package cn.cloud.project.openfeign.api.fallback;

import cn.cloud.project.openfeign.api.ProviderApiClient;
import feign.Request;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: cql
 * @date: 2024/11/5
 * @description:
 */
@Slf4j
@Component
public class ProviderApiFallback implements ProviderApiClient {

    @Override
    public String test(String id) {
        return "执行降级类 test";
    }

    @Override
    public String timeout() {
        return "执行降级类 timeout";
    }

    @Override
    public String timeout(Request.Options options) {
        return "执行降级类 timeout options";
    }

    @Override
    public String uploadImage(MultipartFile file) {
        return "执行降级类 uploadImage";
    }

}
